const highTemperatureProtectionTemperature = {
  key: 'highTemperatureProtectionTemperature',
  label: '高温保护温度',
  unit: '℃'
}

// const programName = {
//   key: 'programName',
//   label: '程序名称'
// }
const cycleNumber = {
  key: 'cycleNumber',
  label: '程序循环数'
}
const lowTemperatureProtectionTemperature = {
  key: 'lowTemperatureProtectionTemperature',
  label: '低温保护温度',
  unit: '℃'
}
const precoolingProtectionTemperature = {
  key: 'precoolingProtectionTemperature',
  label: '预冷保护温度',
  unit: '℃'
}
const preheatingTemperature = {
  key: 'preheatingTemperature',
  label: '预热温度',
  unit: '℃'
}
const precoolingTemperature = {
  key: 'precoolingTemperature',
  label: '预冷温度',
  unit: '℃'
}
const preheatProtectionTemperature = {
  key: 'preheatProtectionTemperature',
  label: '预热保护温度',
  unit: '℃'
}
const defrostCycleNumber = {
  key: 'defrostCycleNumber',
  label: '除霜Cycle'
}
const defrostingTemperature = {
  key: 'defrostingTemperature',
  label: '除霜温度',
  unit: '℃'
}

const temperature = {
  prop: 'temperature',
  label: '温度',
  unit: '℃',
  type: 'input'
}
const temperatureControl = {
  prop: 'temperature',
  label: '温度',
  unit: '℃',
  type: 'input',
  temperatureControl: true
}
const humidity = {
  prop: 'humidity',
  label: '湿度',
  unit: '%RH',
  type: 'input'
}

const humidityControl = {
  prop: 'humidity',
  label: '湿度',
  unit: '%RH',
  type: 'input',
  humidityControl: true
}
const sampleTemperature = {
  prop: 'sampleTemperature',
  label: '样品温度',
  unit: '%℃',
  width: 180,
  readOnly: true,
  type: 'input',
  showOverflowTooltip: false
}
const sampleTemperatureControl = {
  prop: 'sampleTemperature',
  label: '样品温度',
  unit: '%℃',
  width: 180,
  type: 'input',
  showOverflowTooltip: false,
  sampleTemperatureControl: true
}
const time = {
  prop: 'time',
  label: '时间',
  type: 'time',
  order: {
    width: '250'
  }
}
const pressure = {
  prop: 'pressure',
  label: '气压1',
  unit: 'KPa',
  width: 180,
  type: 'input',
  showOverflowTooltip: false,
  pressureControl: true
}

const H101ProgramConfig = {
  formItemList: [cycleNumber, highTemperatureProtectionTemperature, lowTemperatureProtectionTemperature],
  tableLabel: [temperature, humidity, time],
  hasEdit: true
}
const H201ProgramConfig = {
  formItemList: [
    cycleNumber,
    defrostingTemperature,
    defrostCycleNumber,
    preheatingTemperature,
    precoolingTemperature,
    highTemperatureProtectionTemperature,
    lowTemperatureProtectionTemperature,
    preheatProtectionTemperature,
    precoolingProtectionTemperature
  ],
  tableLabel: [temperature, time],
  hasEdit: false
}
const F101ProgramConfig = {
  tableLabel: [temperatureControl, humidityControl, sampleTemperature, time]
}
const F201ProgramConfig = {
  tableLabel: [temperatureControl, humidityControl, time]
}

const F301ProgramConfig = {
  tableLabel: [temperatureControl, humidityControl, time]
}
const F401ProgramConfig = {
  tableLabel: [temperatureControl, humidityControl, sampleTemperature, time]
}
const F501ProgramConfig = {
  tableLabel: [temperatureControl, humidityControl, time]
}
const M101ProgramConfig = {
  tableLabel: [temperatureControl, humidityControl, sampleTemperatureControl, pressure, time]
}

const programConfig = {
  H101ProgramConfig,
  H201ProgramConfig,
  F101ProgramConfig,
  F201ProgramConfig,
  F301ProgramConfig,
  F401ProgramConfig,
  F501ProgramConfig,
  M101ProgramConfig
}

export default programConfig
